package com.myproject.thread.join;

public class CurrentThreadTest {

    //不管调用自己的currentThread还是其他线程的currentThread，最终获得的都是当前线程
    public static void main(String[] args) throws InterruptedException {

        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("hello");
            }
        });

        System.out.println(t.currentThread());
        System.out.println(Thread.currentThread());


    }
}
